<!DOCTYPE html>
<html class="no-js">
<head lang="en">

    <#include "../head_import.html" />

</head>
<body>
<#include "../include/top_nav.html">
    <div class="am-cf admin-main">

        <!-- sidebar start -->
        <#include "../marketing/left.html">
            <!-- sidebar end -->
            <!-- content start-->
            <div class="admin-content">
                <div class="am-cf am-padding">
                    <div class="am-fl am-cf"><@s.m "global.position"/>: 优惠券 - <@s.m "global.add"/></div>
                </div>
                <div class="am-g">
                    <div class="am-u-sm-12 am-u-sm-centered">
                        <form class="ropt">
                            <input type="submit" value="<@s.m "global.backToList"/>" onclick="this.form.action='list.do';"/>
                        </form>
                        <div class="clear"></div>
                    </div>
                </div>
                <div class="am-g">
                    <div class="am-u-sm-12 am-u-sm-centered">
                        <@p.form id="baseForm" action="o_save.do" labelWidth="12">
                        <@p.text colspan="2" width="50" label="优惠劵名称" name="couponName" required="true" class="required" maxlength="50"/><@p.tr/>
                        <@p.text colspan="1" width="50" label="开始时间" name="couponTime" required="true" class="required" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
                        <@p.text colspan="1" width="50" label="结束时间" name="couponEndTime" required="true" class="required" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" /><@p.tr/>
                        <@p.text colspan="1" width="50" label="满足金额" name="leastPrice" required="true" class="required number" maxlength="12"/>
                        <@p.text colspan="1" width="50" label="面值" name="couponPrice" required="true" class="required number" maxlength="12"/><@p.tr/>
                        <@p.text colspan="1" width="50" label="数量" name="couponCount" required="true" class="required number" maxlength="11"/>
                        <@p.radio label="是否启用" colspan="1" width="50" name="isusing" value=true list={"true":"是","false":"否"}/><@p.tr/>
                        <@p.td label="优惠劵图" colspan="1" width="50" noHeight="true">
                        <@p.text id="uploadImgPath11" name="couponPicture" size="30"/> <input type="button" value="<@s.m "imageupload.clear"/>" onclick="clearImg(11);"/><br/>
                        <span id="ufc11"><input type="file" id="uploadFile11" size="20"/></span> <input type="button" value="<@s.m "imageupload.upload"/>" onclick="upload(11);"/><br/>
                        <@s.m "global.width"/>: <input type="text" id="zoomWidth11" value="139" size="5"/> <@s.m "global.height"/>: <input type="text" id="zoomHeight11" value="139" size="5"/> <input type="button" value="<@s.m "imageupload.cut"/>" onclick="imgCut(11);"/>
                    </@p.td><@p.td colspan="1" width="50">
                    <img id="preImg11" alt="<@s.m "imageupload.preview"/>" style="width:100px;height:70px;background-color:#CCCCCC;border:1px solid #333"/>
                </@p.td><@p.tr/>
                <@p.td colspan="2"><@p.submit code="global.submit"/> &nbsp; <@p.reset code="global.reset"/></@p.td>
        </@p.form>
            </div>
    </div>



    </div>

    </div>

<#include "/common/image_upload.html"/>

</body>
</html>